import { ApiProperty } from '@nestjs/swagger';

export class AppSubmitDTO {
  @ApiProperty({ required: true, description: '系统 类型 1 ios 2 android' })
  systemType: number;

  @ApiProperty({ required: true, description: 'app 类型 1 学员 2 教练' })
  appType: number;

  @ApiProperty({ required: true, description: '文件name' })
  name: string;

  @ApiProperty({ required: true, description: 'version' })
  version: string;

  @ApiProperty({ required: true, description: 'app 描述文本' })
  desc: string;

  @ApiProperty({ required: false, description: '上传者' })
  personId: number;

  @ApiProperty({ required: true, description: '上传app文件Id' })
  fileId: number;

  @ApiProperty({ required: true, description: '文件build' })
  build: string;
}

export class AppRequestDTO {
  @ApiProperty({ required: true, description: '文件id' })
  id: number;
}

export class AppRequestListDTO {
  @ApiProperty({ required: true, description: '系统类型 1android，2ios' })
  systemType?: number;

  @ApiProperty({ required: true, description: 'app类型 1 学员，2 教练' })
  appType?: number;

  @ApiProperty({ required: true, description: '分页大小' })
  pageSize?: number;
}

export class AppRequestLateWithTypeDTO {
  @ApiProperty({ required: true, description: '系统类型 1android，2ios' })
  systemType?: number;

  @ApiProperty({ required: true, description: 'app类型 1 学员，2 教练' })
  appType?: number;
}

export class AppInfoDTO {
  @ApiProperty({ description: 'app id' })
  id: number;

  @ApiProperty({ description: '文件名字' })
  name: string;

  @ApiProperty({ description: '文件大小' })
  size: number;

  @ApiProperty({ description: '文件路径' })
  path: string;

  @ApiProperty({ description: '文件类型，1:ios，2:android' })
  fileType: number;

  @ApiProperty({ description: '上传日期' })
  uploadTime: number;

  @ApiProperty({ description: '上传人信息' })
  personId: number;

  @ApiProperty({ description: '文件描述' })
  desc: string;

  @ApiProperty({ description: '文件版本' })
  version: string;
}
